<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:body>
	<ui:composition>
		<p:notificationBar id="notificacionEventos" position="bottom" effect="slide" widgetVar="notificacion" style="height: 210px;" styleClass="notification">
		    <p:panelGrid columns="2" style="width: 100%; text-align:right;" cellpadding="0" styleClass="no-border">
					<p:commandLink id="btnOcultar"
						type="button"
						global="false"
						process="@this"
						onclick="notificacion.hide()">
						<h:graphicImage library="images" name="ocultar.png"
							style="height: 20px; border: 0px;"
							alt="#{etq['sifeap.ocultar']}"
							title="#{etq['sifeap.ocultar']}" />
					</p:commandLink>
			</p:panelGrid>
		    
		    <div align="center">
			    <p:carousel id="eventos" circular="true" value="#{listaEventosManagedBean.listaEventos}" var="evento" numVisible="1" 
			    	effect="easeInStrong" rendered="#{listaEventosManagedBean.listaEventos != null &amp;&amp; listaEventosManagedBean.listaEventos.size() > 0}" style="text-align:left;" itemStyle="height:120px;width:592px;">  
				    <f:facet name="header">  
				    	<h:outputText value="#{etq['sifeap.eventos.eventosvigentes']}" />
				    </f:facet>  
				    <h:panelGrid columns="1" style="width:100%; text-align: center;" cellpadding="2" styleClass="smallfont">
			    		<h:outputText value="#{evento.nombre}" style="font-weight: bold;"/>
			    		<h:outputText value="#{evento.descripcion}" />
				    </h:panelGrid>
				    <div align="center">
				        <h:panelGrid columns="5" style="width:65%;text-align: left;" cellpadding="2" styleClass="smallfont">
				        	<h:outputText value="#{etq['sifeap.eventos.fecha']}" style="font-weight: bold;" />
				        	<h:outputText value="#{evento.fechaEvento}">
								<f:convertDateTime pattern="dd-MM-yyyy"/>
							</h:outputText>
							
							<p:spacer width="10px" height="1px" />
							
							<h:outputText value="#{etq['sifeap.eventos.hora']}" style="font-weight: bold;" />
							<h:outputText value="#{evento.horaEvento}">
								<f:convertDateTime pattern="hh:mm a" />
							</h:outputText>
				        </h:panelGrid>
			        </div>
				</p:carousel>
				<h:outputText value="#{msj['sifeap.eventos.novigentes']}" style="font-weight: bold;" rendered="#{!(listaEventosManagedBean.listaEventos != null &amp;&amp; listaEventosManagedBean.listaEventos.size() > 0)}" />
			</div>
		</p:notificationBar>
	</ui:composition>
</h:body>
</html>